home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POINT Software Programming
/
PPROG1.ISO
/
pascal
/
swag
/
textwndw.swg
/
0010_Get TextAttr Colors.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1993-11-02
|
285 b
|
15 lines
{
KELLY SMALL
>Get the foreground/background/blink attr out of TextAttr.
Assuming you're using TP/BP:
}
Procedure GetColor(Var f, b : Byte; Var BlinkOn : Boolean);
begin
f := TextAttr And $F;
b := (TextAttr Shr 4) And 7;
BlinkOn := TextAttr And $80 = $80;
end;